* xterm.c (x_find_modifier_meanings): XDisplayKeycodes only
authorJim Blandy <jimb@redhat.com>
Thu, 11 Mar 1993 07:19:36 +0000 (07:19 +0000)
committerJim Blandy <jimb@redhat.com>
Thu, 11 Mar 1993 07:19:36 +0000 (07:19 +0000)
appeared in X11R4; for earlier versions, just access the members
of the Display directly.

src/xterm.c

index 57028257e0e819849e3471dcff47f65e513e54e9..a7e1b983d3d4c957ce637c14884c8c99d8150f3b 100644 (file)
@@ -1403,7 +1403,13 @@ x_find_modifier_meanings ()
   x_super_mod_mask = 0;
   x_hyper_mod_mask = 0;
   
+#ifdef HAVE_X11R4
   XDisplayKeycodes (x_current_display, &min_code, &max_code);
+#else
+  min_code = x_current_display->min_keycode;
+  max_code = x_current_display->max_keycode;
+#endif
+
   syms = XGetKeyboardMapping (x_current_display,
                              min_code, max_code - min_code + 1,
                              &syms_per_code);